# -*- coding: utf-8 -*-
# @Time : 2018/12/25 10:05
# @Author : Administrator
# @File : httptestV2.py
# @Project : 4.Python
# @title : requests库--接口测试
import requests
class Http_Requests():
    def test_general(self):  #通用方法
        res_get=requests.request(method='GET',url='http://localhost/agileone')
        # print(res_get)
        print(res_get.text)
        # print(res_get.content)
        # print(res_get.encoding)
        # print(res_get.cookies)
        # print(res_get.headers)
        # print(res_get.url)
        # print(res_get.status_code)
        pass

    def test_post(self):
        pass


        
if __name__ == '__main__':
    Http_Requests().test_general()